<div *ngIf="!this.data.name">
  <div class="modal-card ">
    <label>
      <span><span class="require">*</span>联系人</span>
    </label>
    <input type="text" dTextInput class="form-input-box" name="联系人" [(ngModel)]="form.customerContactName">
  </div>
  <div class="modal-card">
    <label>
    </label>
    <div class="invalid" *ngIf="data.display&&!form.customerContactName">*值不能为空</div>
  </div>
  <div class="modal-card mt-3">
    <label>
      <span>性别</span>
    </label>
    <d-radio-group [name]="'性别'" [direction]="'row'" [(ngModel)]="form.gender">
      <d-radio [name]="'性别value'" *ngFor="let obj of genderOption" [value]="obj.value">
        {{ obj.name }}
      </d-radio>
    </d-radio-group>
  </div>
  <div class="modal-card mt-3">
    <label>
      <span>出生日期</span>
    </label>
    <d-datepicker-pro [(ngModel)]="form.birthday" name="出生日期" [appendToBody]="false"></d-datepicker-pro>
  </div>
  <div class="modal-card mt-3">
    <label>
      <span>联系电话</span>
    </label>
    <input type="text" dTextInput class="form-input-box" name="联系电话" [(ngModel)]="form.phone">
  </div>
  <div class="modal-card mt-3">
    <label>
      <span>是否默认</span>
    </label>
    <d-toggle [(ngModel)]="form.isDefault"></d-toggle>
  </div>
  <div class="modal-card mt-3">
    <label>
      <span>地址</span>
    </label>
    <input type="text" dTextInput class="form-input-box" name="地址" [(ngModel)]="form.address">
  </div>
  <div class="modal-card mt-3">
    <label>
      <span>邮箱</span>
    </label>
    <input type="text" dTextInput class="form-input-box" name="email" [(ngModel)]="form.email">
  </div>
  <div class="modal-card mt-3">
    <label>
      <span>微信</span>
    </label>
    <input type="text" dTextInput class="form-input-box" name="微信" [(ngModel)]="form.weChat">
  </div>
  <div class="modal-card mt-3">
    <label>
      <span>传真</span>
    </label>
    <input type="text" dTextInput class="form-input-box" name="传真" [(ngModel)]="form.fax">
  </div>
  <div class="modal-card mt-3">
    <label>
      <span>QQ</span>
    </label>
    <input type="text" dTextInput class="form-input-box" name="微信" [(ngModel)]="form.qq">
  </div>
</div>
<div *ngIf="this.data.name =='供应商'">
  <div class="modal-card ">
    <label>
      <span><span class="require">*</span>联系人</span>
    </label>
    <input type="text" dTextInput class="form-input-box" name="联系人" [(ngModel)]="supplierLinkMan.supplyContactName">
  </div>
  <div class="modal-card">
    <label>
    </label>
    <div class="invalid" *ngIf="data.display&&!supplierLinkMan.supplyContactName">*值不能为空</div>
  </div>
  <div class="modal-card mt-3">
    <label>
      <span>性别</span>
    </label>
    <d-radio-group [name]="'性别'" [values]="sexOption" [direction]="'row'" [(ngModel)]="supplierLinkMan.sex"
     ></d-radio-group>
  </div>
  <div class="modal-card mt-3">
    <label>
      <span>出生日期</span>
    </label>
    <d-datepicker-pro [(ngModel)]="supplierLinkMan.birthday" name="出生日期" [appendToBody]="false"></d-datepicker-pro>
  </div>
  <div class="modal-card mt-3">
    <label>
      <span>联系电话</span>
    </label>
    <input type="text" dTextInput class="form-input-box" name="联系电话" [(ngModel)]="supplierLinkMan.phone">
  </div>
  <div class="modal-card mt-3">
    <label>
      <span>是否默认</span>
    </label>
    <d-toggle [(ngModel)]="supplierLinkMan.isDefault"></d-toggle>
  </div>
  <div class="modal-card mt-3">
    <label>
      <span>地址</span>
    </label>
    <input type="text" dTextInput class="form-input-box" name="地址" [(ngModel)]="supplierLinkMan.address">
  </div>
  <div class="modal-card mt-3">
    <label>
      <span>邮箱</span>
    </label>
    <input type="text" dTextInput class="form-input-box" name="email" [(ngModel)]="supplierLinkMan.email">
  </div>
  <div class="modal-card mt-3">
    <label>
      <span>微信</span>
    </label>
    <input type="text" dTextInput class="form-input-box" name="微信" [(ngModel)]="supplierLinkMan.weChat">
  </div>
  <div class="modal-card mt-3">
    <label>
      <span>QQ</span>
    </label>
    <input type="text" dTextInput class="form-input-box" name="微信" [(ngModel)]="supplierLinkMan.qq">
  </div>
</div>
